import Vue from 'vue'
import VueRouter from 'vue-router'
import PageA from '../pages/a/a.vue'
import PageB from '../pages/b/b.vue'
import VuexCounterDemoBak from '../pages/vuex_counter_demo/bak/VuexCounterDemo_bak.vue'
import VuexCounterDemo from '../pages/vuex_counter_demo/VuexCounterDemo.vue'
import VuexLoginDemo from '../pages/vuex_login_demo/VuexLoginDemo.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/page_a',
        component: PageA
    },
    {
        path: '/page_b',
        component: PageB
    },
    {
        path: '/vuex_counter_demo_bak',
        component: VuexCounterDemoBak
    },
    {
        path: '/vuex_counter_demo',
        component: VuexCounterDemo
    },
    {
        path: '/vuex_login_demo',
        component: VuexLoginDemo
    }
]


const router = new VueRouter({
    routes
})

export default router